<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../common.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="${staticPath}/js/app/center/center.js"></script>
<title>个人中心</title>
</head>
<body ontouchstart>
	<div class="weui_tab">
		<header class="centerHeader">
			<div class="centerOHeader">
				<h1>个人中心</h1>
				<div class="centerOHeadset">
					<a href="javascript:void(0)" onclick="about();">
						<img src="${staticPath}/images/set.png">
					</a>
				</div>
			</div>
		</header>
		<div class="weui_tab_bd">
			<div class="centertop">
				<div class="centertx">
					<c:if test="${avatar != null }">
						<img style="border-radius:50%;width:100px;height:100px;" src="${avatar }" onerror="this.src='${staticPath}/images/nologin.png'" onclick="setting()">
					</c:if>
					<c:if test="${avatar == null }">
						<img style="border-radius:50%;width:100px;height:100px;" src="${staticPath}/images/nologin.png" onclick="setting()">
					</c:if>
					<h3>${name }</h3>
				</div>
				<div class="centerm">
					<div class="centerml">
						<p>可用积分</p>
						<p>${points }</p>
					</div>
					<div class="centerml">
						<p>可用余额</p>
						<p><fmt:formatNumber value="${purse * 0.01}" pattern="#,###.##" /></p>
					</div>
					<div class="centermr">
						<p style="line-height:60px;">${dealerlevel.name }</p>
					</div>
				</div>
			</div>
			<input type="hidden" id="domain" name="domain" value="${domain }" />
			<div class="weui_grids" style="margin-bottom: 50px;">
				<a href="javascript:dealer();" class="weui_grid js_grid" data-id="cell">
					<div class="weui_grid_icon">
						<img src="${staticPath}/images/dealer.png" alt="">
					</div>
					<p class="weui_grid_label">我的会员</p>
				</a>
				<a href="javascript:performance();" class="weui_grid js_grid" data-id="cell">
					<div class="weui_grid_icon">
						<img src="${staticPath}/images/performance.png" alt="">
					</div>
					<p class="weui_grid_label">我的积分</p>
				</a>
				<a href="javascript:myqrcode();" class="weui_grid js_grid" data-id="cell">
					<div class="weui_grid_icon">
						<img src="${staticPath}/images/promote.png" alt="">
					</div>
					<p class="weui_grid_label">我的推广</p>
				</a>
				<a href="javascript:buyer();" class="weui_grid js_grid" data-id="button">
					<div class="weui_grid_icon">
						<img src="${staticPath}/images/mj.png" alt="">
					</div>
					<p class="weui_grid_label">我的订单</p>
				</a>
				<a href="javascript:myMoney();" class="weui_grid js_grid" data-id="cell">
					<div class="weui_grid_icon">
						<img src="${staticPath}/images/zj.png" alt="">
					</div>
					<p class="weui_grid_label">我的资金</p>
				</a>
				<a href="javascript:address();" class="weui_grid js_grid" data-id="cell">
					<div class="weui_grid_icon">
						<img src="${staticPath}/images/dress.png" alt="">
					</div>
					<p class="weui_grid_label">收货地址</p>
				</a>
				<% /*
				<a href="javascript:favorites();" class="weui_grid js_grid" data-id="cell">
					<div class="weui_grid_icon">
						<img src="${staticPath}/images/sc.png" alt="">
					</div>
					<p class="weui_grid_label">我的收藏</p>
				</a>
				*/ %>
			</div>
		</div>
		<div class="weui_tabbar">
			<a href="javascript:gotoHtml('/index.html');" class="weui_tabbar_item">
				<div class="weui_tabbar_icon">
					<img src="${staticPath}/images/home.png" alt="">
				</div>
				<p class="weui_tabbar_label">首页</p>
			</a>
			<a href="javascript:gotoHtml('/goodsClass/index.html');" class="weui_tabbar_item">
				<div class="weui_tabbar_icon">
					<img src="${staticPath}/images/sort.png" alt="">
				</div>
				<p class="weui_tabbar_label">分类</p>
			</a>
			<a href="javascript:cart();" class="weui_tabbar_item cart">
				<div class="weui_tabbar_icon">
					<img src="${staticPath}/images/shop.png" alt="">
				</div>
				<p class="weui_tabbar_label">购物车</p>
			</a>
			<a href="javascript:;" class="weui_tabbar_item weui_bar_item_on">
				<div class="weui_tabbar_icon">
					<img src="${staticPath}/images/main.png" alt="">
				</div>
				<p class="weui_tabbar_label">我的</p>
			</a>
			<a  href="javascript:kefu();" class="weui_tabbar_item">
				<div class="weui_tabbar_icon">
					<img src="${staticPath}/images/service.png" alt="">
				</div>
				<p class="weui_tabbar_label">客服</p>
			</a>
		</div>
	</div>
</body>
</html>